package com.gibs.peixunapi.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToOne;
import java.util.Date;

/**
 * //证书模板
 * @author liangjiawei
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
//@Table(name = "certificate")
public class Certificate extends BaseModel {

	/**名称*/
	private String name;

	/**证书样式*/
	@OneToOne(cascade = CascadeType.REFRESH)
	private FileInfo fileInfo;

	/**有效期*/
	private String validTime;

	/**创建时间*/
	private Date createTime;

	/**创建人*/
	private Integer creator;

	/**是否删除*/
	private Boolean isDelete;

}

